package com.ce.pms.occupation.model;

// Generated 2008-12-24 13:41:51 by Hibernate Tools 3.2.0.b9

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ce.pms.common.model.SysInfo;
import com.ce.pms.customer.model.IdTypeDO;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:入伙委托代理人信息 关联数据表:OM_CONSIGN_AGENT
 *
 * @author yandawei
 * @CreateDate:2008-12-24
 */
@Entity
@Table(name = "OM_CONSIGN_AGENT")
public class ConsignAgentDO implements IDomainObject {
	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "CONSIGN_AGENT_ID", unique = true, nullable = false)
	private Long keyword;

	/**
	 * 证件类型
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_TYPE_ID")
	private IdTypeDO idType;

	/**
	 * 委托代理人姓名
	 */
	@Column(name = "CONSIGN_AGENT_NAME", nullable = false, length = 50)
	private String consignAgentName;

	/**
	 * 证件号码
	 */
	@Column(name = "ID_NUMBER", nullable = false, length = 30)
	private String idNumber;

	/**
	 * 联系人号码
	 */
	@Column(name = "LINKMAN_PHONE", length = 30)
	private String linkmanPhone;

	/**
	 * 系统信息
	 */
	@Embedded
	@AttributeOverride(name="sysDate",column=@Column(name="SYS_DATE"))
	private SysInfo sysInfo;

	public ConsignAgentDO() {
	}

	public ConsignAgentDO(Long keyword) {
		this.keyword = keyword;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public String getConsignAgentName() {
		return this.consignAgentName;
	}

	public void setConsignAgentName(String consignAgentName) {
		this.consignAgentName = consignAgentName;
	}

	public String getIdNumber() {
		return this.idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	public String getLinkmanPhone() {
		return this.linkmanPhone;
	}

	public void setLinkmanPhone(String linkmanPhone) {
		this.linkmanPhone = linkmanPhone;
	}

	public IdTypeDO getIdType() {
		return idType;
	}

	public void setIdType(IdTypeDO idType) {
		this.idType = idType;
	}

	public SysInfo getSysInfo() {
		return sysInfo;
	}

	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}

}
